package psd.model.Prolog.Converters;

import org.eclipse.jdt.core.dom.ParenthesizedExpression;

import psd.model.IConverter;
import psd.model.Prolog.FactGenerationToolbox;
import psd.model.Prolog.PrologConverter;


public class PrologParenthesizedExpressionConverter extends PrologConverter
		implements IConverter<ParenthesizedExpression> {

	public PrologParenthesizedExpressionConverter(
			FactGenerationToolbox toolbox) {
		super(toolbox);
	}

	@Override
	public boolean convert(ParenthesizedExpression node) {
		String args[] = { idResolver.getID(node.getExpression()) };
		createBodyFact(node, "precedenceT", args);
		return true;
	}

}
